package top.novel.ioc.metadata;

import java.io.File;

/**
 * @author xuhainan
 * @date 2022/8/12 14:46
 * @region hefei
 */

public class BeanMetaData {

    private String name;

    private File file;

    public BeanMetaData(){

    }

    public BeanMetaData(String name, File file) {
        this.name = name;
        this.file = file;
    }


    public String getName() {
        if (name == null) {
            return file.getName();
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }
}
